home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / serien / purity / nr.42 / includes3v1 / includes3v1.lha / Prefs / PrinterPS.i < prev    next >
Text File  |  1994-12-04  |  3KB  |  137 lines

  1.  {      File format for PostScript printer preferences   }
  2.  
  3.  
  4. {$I "Include:Libraries/IffParse.i"}
  5.  
  6.  
  7. const
  8.  ID_PSPD = 1347637316;
  9.  
  10. Type
  11.  PrinterPSPrefs = Record
  12.     ps_Reserved     : Array[0..3] of Integer;               { System reserved }
  13.  
  14.     { Global printing attributes }
  15.     ps_DriverMode,
  16.     ps_PaperFormat  : Byte;
  17.     ps_Reserved1    : Array[0..1] of Byte;
  18.     ps_Copies,
  19.     ps_PaperWidth,
  20.     ps_PaperHeight,
  21.     ps_HorizontalDPI,
  22.     ps_VerticalDPI  : Integer;
  23.  
  24.     { Text Options }
  25.     ps_Font,
  26.     ps_Pitch,
  27.     ps_Orientation,
  28.     ps_Tab          : Byte;
  29.     ps_Reserved2    : Array[0..7] of Byte;
  30.  
  31.     { Text Dimensions }
  32.     ps_LeftMargin,
  33.     ps_RightMargin,
  34.     ps_TopMargin,
  35.     ps_BottomMargin,
  36.     ps_FontPointSize,
  37.     ps_Leading      : Integer;
  38.     ps_Reserved3    : Array[0..7] of Byte;
  39.  
  40.     { Graphics Options }
  41.     ps_LeftEdge,
  42.     ps_TopEdge,
  43.     ps_Width,
  44.     ps_Height       : Integer;
  45.     ps_Image,
  46.     ps_Shading,
  47.     ps_Dithering    : Byte;
  48.     ps_Reserved4    : Array[0..8] of Byte;
  49.  
  50.     { Graphics Scaling }
  51.     ps_Aspect,
  52.     ps_ScalingType,
  53.     ps_Reserved5,
  54.     ps_Centering    : Byte;
  55.     ps_Reserved6    : Array[0..7] of byte;
  56.  end;
  57.  PrinterPSPrefsPtr = ^PrinterPSPrefs;
  58.  
  59. const
  60. { All measurements are in Millipoints which is 1/1000 of a point, or
  61.  * in other words 1/72000 of an inch
  62.  }
  63.  
  64. { constants for PrinterPSPrefs.ps_DriverMode }
  65.  DM_POSTSCRIPT  = 0;
  66.  DM_PASSTHROUGH = 1;
  67.  
  68. { constants for PrinterPSPrefs.ps_PaperFormat }
  69.  PF_USLETTER = 0;
  70.  PF_USLEGAL  = 1;
  71.  PF_A4       = 2;
  72.  PF_CUSTOM   = 3;
  73.  
  74. { constants for PrinterPSPrefs.ps_Font }
  75.  FONT_COURIER      = 0;
  76.  FONT_TIMES        = 1;
  77.  FONT_HELVETICA    = 2;
  78.  FONT_HELV_NARROW  = 3;
  79.  FONT_AVANTGARDE   = 4;
  80.  FONT_BOOKMAN      = 5;
  81.  FONT_NEWCENT      = 6;
  82.  FONT_PALATINO     = 7;
  83.  FONT_ZAPFCHANCERY = 8;
  84.  
  85. { constants for PrinterPSPrefs.ps_Pitch }
  86.  PITCH_NORMAL     = 0;
  87.  PITCH_COMPRESSED = 1;
  88.  PITCH_EXPANDED   = 2;
  89.  
  90. { constants for PrinterPSPrefs.ps_Orientation }
  91.  ORIENT_PORTRAIT  = 0;
  92.  ORIENT_LANDSCAPE = 1;
  93.  
  94. { constants for PrinterPSPrefs.ps_Tab }
  95.  TAB_4     = 0;
  96.  TAB_8     = 1;
  97.  TAB_QUART = 2;
  98.  TAB_HALF  = 3;
  99.  TAB_INCH  = 4;
  100.  
  101. { constants for PrinterPSPrefs.ps_Image }
  102.  IM_POSITIVE = 0;
  103.  IM_NEGATIVE = 1;
  104.  
  105. { constants for PrinterPSPrefs.ps_Shading }
  106.  SHAD_BW        = 0;
  107.  SHAD_GREYSCALE = 1;
  108.  SHAD_COLOR     = 2;
  109.  
  110. { constants for PrinterPSPrefs.ps_Dithering }
  111.  DITH_DEFAULT = 0;
  112.  DITH_DOTTY   = 1;
  113.  DITH_VERT    = 2;
  114.  DITH_HORIZ   = 3;
  115.  DITH_DIAG    = 4;
  116.  
  117. { constants for PrinterPSPrefs.ps_Aspect }
  118.  ASP_HORIZ = 0;
  119.  ASP_VERT  = 1;
  120.  
  121. { constants for PrinterPSPrefs.ps_ScalingType }
  122.  ST_ASPECT_ASIS    = 0;
  123.  ST_ASPECT_WIDE    = 1;
  124.  ST_ASPECT_TALL    = 2;
  125.  ST_ASPECT_BOTH    = 3;
  126.  ST_FITS_WIDE      = 4;
  127.  ST_FITS_TALL      = 5;
  128.  ST_FITS_BOTH      = 6;
  129.  
  130. { constants for PrinterPSPrefs.ps_Centering }
  131.  CENT_NONE  = 0;
  132.  CENT_HORIZ = 1;
  133.  CENT_VERT  = 2;
  134.  CENT_BOTH  = 3;
  135.  
  136.  
  137.